package com.community.process._1010.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.community.process._1010.common.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName("yg_process_user")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ProcessUser extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 手机号和账号
     */
    private String phone;

    /**
     * 店铺id
     */
    private String shopId;

    private String username;

    /**
     * 邮箱
     */
    private String email;

    private Integer type;

    /**
     * 头像
     */
    private String img;

    /**
     * 密码
     */

    private String password;

    /**
     * 姓名
     */
    private String name;

    /**
     * 数据字典：0正常，1：禁止登录
     */
    private String status;

    private String wxOpenId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLoginTime;

}
